package com.youdoneed.friends.model;

import com.youdoneed.base.common.AESEncryptor;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用户通讯录。
 */
public class Contact {

    @ApiModelProperty("通讯录ID")
    private String contactId;

    @ApiModelProperty("创建时间")
    private java.sql.Timestamp createTime;

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("名字")
    private String name;

    @ApiModelProperty("号码")
    private String phoneNo;

    public String getContactId() {
        return contactId;
    }

    public void setContactId(String contactId) {
        this.contactId = contactId;
    }

    public java.sql.Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(java.sql.Timestamp createTime) {
        this.createTime = createTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getName() {
        return AESEncryptor.decryptString(name);
    }

    public void setName(String name) {
        this.name = AESEncryptor.encryptString(name);
    }

    public String getPhoneNo() {
        return AESEncryptor.decryptString(phoneNo);
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = AESEncryptor.encryptString(phoneNo);
    }

}

